<meta charset="UTF-8">

<h1>图片懒加载</h1>
<p><img src="https://img2.baidu.com/it/u=3303626147,2951217843&fm=253&fmt=auto&app=138&f=GIF?w=667&h=500" data="./imgs/1.jpg" alt=""></p>
<p><img src="https://img2.baidu.com/it/u=3303626147,2951217843&fm=253&fmt=auto&app=138&f=GIF?w=667&h=500" data="./imgs/2.jpg" alt=""></p>
<p><img src="https://img2.baidu.com/it/u=3303626147,2951217843&fm=253&fmt=auto&app=138&f=GIF?w=667&h=500" data="./imgs/3.jpg" alt=""></p>
<p><img src="https://img2.baidu.com/it/u=3303626147,2951217843&fm=253&fmt=auto&app=138&f=GIF?w=667&h=500" data="./imgs/5.jpg" alt=""></p>
<p><img src="https://img2.baidu.com/it/u=3303626147,2951217843&fm=253&fmt=auto&app=138&f=GIF?w=667&h=500" data="./imgs/6.jpg" alt=""></p>
<p><img src="https://img2.baidu.com/it/u=3303626147,2951217843&fm=253&fmt=auto&app=138&f=GIF?w=667&h=500" data="./imgs/7.jpg" alt=""></p>
<p><img src="https://img2.baidu.com/it/u=3303626147,2951217843&fm=253&fmt=auto&app=138&f=GIF?w=667&h=500" data="./imgs/8.gif" alt=""></p>

<script src="./lazyload.js"></script>
<script>
lazyload();
window.onscroll = lazyload;
</script>